home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005 / CHIP Utilities 2005.iso / dosapps / diskedit / de4.doc < prev    next >
Encoding:
Text File  |  1998-06-02  |  25.2 KB  |  540 lines

  1. ----------------------------------------------------------------------------
  2. STRNFAT <Alt-F4>
  3.  
  4.      Parses the cluster chain of all Directories and Files, in the logged
  5. drive, comparing their cluster chain with the FAT (File Allocation Table).
  6. And locating all clusters that are Strays (not associated with any file) or
  7. that are Cross-Linked (two files are sharing the same clusters).
  8. As the cluster chain of each Directory or File is parsed, it is displayed
  9. as the "Current File". You will see the prompt below.
  10. Choose the printer option by pressing "Y" or "N" on the keyboard, or a
  11. left mouse click over the "Y" or "N". To abort, press "ESC" on the keyboard,
  12. or a right mouse click. If "Y" is chosen, and the printer is not On Line,
  13. and you press ESC (to abort the print-out), the session will continue.
  14.  
  15.      [F1=Help] Do you wish to have the output sent to the printer (Y/N) ?
  16.  
  17. Pressing "F1" on the keyboard, or a left mouse click over "[F1=Help]", will
  18. pop-up the help screen below:
  19.  
  20.              +-|ESC|---------------------------------+
  21.              | This session parses all Directories,  |
  22.              | along with the FAT (File Allocation   |
  23.              | Table), locating all clusters that    |
  24.              | are Strays (not associated with any   |
  25.              | file) or that are Cross-Linked (two   |
  26.              | files are sharing the same clusters). |
  27.              | All output is sent to the screen and  |
  28.              | optionally the printer.               |
  29.              | ESC = abort this session.             |
  30.              +---------------------------------------+
  31.  
  32.      After selecting the printer option, the prompt below will appear.
  33. The "Current File" display, at the top left-hand corner of the screen,
  34. will show the Directory or File that is currently being parsed.
  35. To abort this session, before it is finished, press ESC.
  36.  
  37.          >>>>  Locating Stray and Cross-Linked clusters in the FAT.  <<<<
  38.  
  39.      If there are Stray and/or Cross-Linked clusters found, the 2 examples
  40. below show the format of what you would see.
  41. NOTE: This is the only session in this program that is not yet complete.
  42. But will at least detect, show the information on the screen, and send the
  43. information to the printer. Once completed, will be able to unCross-Link
  44. the found files. As a side note, if you have instances of both, then more
  45. than likely at least some of the Stray clusters belong to one of the
  46. Cross-Linked files.
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.                                                                  Page 37
  55. STRNFAT <Alt-F4> (cont.)
  56.  
  57.   +------------+-----------+-----------+------------+-------------------
  58.   | Find stray clusters in the FAT for drive A:                        |
  59.   | ------------------------------------------------------------------ |
  60.   | Stray clusters       :  None.                                      |
  61.   |                                                                    |
  62.   | Cross-Linked clusters:     Eh     Fh    10h    11h    12h          |
  63.   |                                                                    |
  64.   |                                                                    |
  65.   |                                                                    |
  66.   |                                                                    |
  67.   |                                                                    |
  68.   |                                                                    |
  69.   |                                                                    |
  70.   |                                                                    |
  71.   |                                                                    |
  72.   |                                                                    |
  73.   |                                                                    |
  74.   +------------+-----------+-----------+------------+-------------------
  75.                     Press any key to continue...
  76.  
  77.   +------------+-----------+-----------+------------+-------------------
  78.   | Cross-Linked file(s) 1 of 1.                                       |
  79.   |   A:CLINK1.FIL                                                     |
  80.   |     Files directory sector   : 7 (7h)                              |
  81.   |     File entry in this sector: 6 (Offset: A0h)                     |
  82.   |     Starting cluster number  : 14 (Eh)                             |
  83.   |   A:CLINK2.FIL                                                     |
  84.   |     Files directory sector   : 7 (7h)                              |
  85.   |     File entry in this sector: 2 (Offset: 20h)                     |
  86.   |     Starting cluster number  : 13 (Dh)                             |
  87.   |   Files are Cross-Linked at clusters:     Eh     Fh    10h    11h  |
  88.   |                                          12h                       |
  89.   |                                                                    |
  90.   |                                                                    |
  91.   |                                                                    |
  92.   |                                                                    |
  93.   |                                                                    |
  94.   +------------+-----------+-----------+------------+-------------------
  95.                     Press any key to continue...
  96.  
  97.      NOTE: In order to limit the file size of DE, it uses memory allocation
  98. to perform this test. If in running this session with the least amount of
  99. memory required, there would still not be enough free memory, you would see
  100. see the message below. Press "ESC" on the keyboard, or a left mouse click
  101. over "ESC", to end the StrNFAT session.
  102.  
  103.              +-|ESC|---------------------------------+
  104.              | SORRY: There is not enough free memory|
  105.              | to run the Stray cluster session!     |
  106.              +---------------------------------------+
  107.  
  108.                                                                  Page 38
  109. ----------------------------------------------------------------------------
  110. FNDNFAT <Alt-F5>
  111.  
  112.      Parses the FAT (File Allocation Table), of the logged drive, to find
  113. any clusters that are marked as BAD (FF7h for a 12-bit FAT or FFF7h for a
  114. 16-bit FAT), clusters that are marked as RESERVED (FF0-FF6h for a 12-bit
  115. FAT or FFF0-FFF6h for a 16-bit FAT), or cluster numbers that exceed the
  116. maximum cluster number allowed for the logged drive. FYI. The following are
  117. the cluster values, so to speak, that indicate that there are no more
  118. clusters in the file cluster chain (FF8-FFFh for a 12-bit FAT and FFF8-FFFFh
  119. for a 16-bit FAT; FFFh or FFFFh are the most commonly used values).
  120. You will see the prompt below.
  121. Choose the printer option by pressing "Y" or "N" on the keyboard, or a
  122. left mouse click over the "Y" or "N". To abort, press "ESC" on the keyboard,
  123. or a right mouse click. If "Y" is chosen, and the printer is not On Line,
  124. and you press ESC (to abort the print-out), the session will continue.
  125.  
  126.      [F1=Help] Do you wish to have the output sent to the printer (Y/N) ?
  127.  
  128. Pressing "F1" on the keyboard, or a left mouse click over "[F1=Help]", will
  129. pop-up the help screen below:
  130.  
  131.              +-|ESC|---------------------------------+
  132.              | This session locates all clusters in  |
  133.              | the FAT (File Allocation Table) that  |
  134.              | are marked as Bad, Reserved by DOS,   |
  135.              | or that exceed the maximum cluster    |
  136.              | number that is allowed for this drive.|
  137.              | "Value" = the hexidecimal value that  |
  138.              | is stored at that "Cluster" number;   |
  139.              | each cluster in the FAT is actually   |
  140.              | a pointer to the next cluster!        |
  141.              | All output is sent to the screen and  |
  142.              | optionally the printer.               |
  143.              | ESC = abort this session.             |
  144.              +---------------------------------------+
  145.  
  146.      After selecting the printer option, the prompt below will appear.
  147.  
  148.          >>>>  Locating special clusters in the FAT.  <<<<
  149.  
  150.      The output, which doesn't take long, will look something like this:
  151.  
  152.          Find special FAT clusters for drive C:
  153.          ------------------------------------------------------------------
  154.          Clusters marked as bad:  xxxxh  xxxxh  xxxxh  xxxxh  xxxxh  xxxxh
  155.  
  156.                                              Cluster  Value  Cluster  Value
  157.                                              -------  -----  -------  -----
  158.          Clusters marked as reserved by DOS:  xxxxh   xxxxh   xxxxh   xxxxh
  159.  
  160.          Invalid cluster numbers in the FAT:  None.  <---- If none found.
  161.  
  162.                                                                  Page 39
  163. ----------------------------------------------------------------------------
  164. CMPFATS <Alt-F6>
  165.  
  166.      Compares both copies of the FAT (File Allocation Table), of the logged
  167. drive, for any differences. Both copies are supposed to be identical.
  168. If there is only 1 FAT on the disk, will just beep the PC speaker.
  169. FYI. DOS instituted there being a second copy of the FAT around DOS v2.
  170. The intension was that if the first (or master) FAT were to be corrupted,
  171. there would be a backup copy. The problem with this is that when DOS performs
  172. file handling, both copies of the FAT are updated. Meaning that the second
  173. copy is really useless. It is not a DOS requirement that a disk have 2 FAT's,
  174. but RAMDISKS are all that I've ever seen that have only 1 FAT.
  175. You will see the prompt below.
  176. Choose the printer option by pressing "Y" or "N" on the keyboard, or a
  177. left mouse click over the "Y" or "N". To abort, press "ESC" on the keyboard,
  178. or a right mouse click. If "Y" is chosen, and the printer is not On Line,
  179. and you press ESC (to abort the print-out), the session will continue.
  180.  
  181.      [F1=Help] Do you wish to have the output sent to the printer (Y/N) ?
  182.  
  183. Pressing "F1" on the keyboard, or a left mouse click over "[F1=Help]", will
  184. pop-up the help screen below:
  185.  
  186.              +-|ESC|---------------------------------+
  187.              | This session compares the two copies  |
  188.              | of the FAT (File Allocation Table).   |
  189.              | The FAT contains the Cluster numbering|
  190.              | layout (or Chain) of all files on the |
  191.              | disk. If any differences are found,   |
  192.              | they are reported to the screen and   |
  193.              | optionally the printer.               |
  194.              | ESC = abort this session.             |
  195.              +---------------------------------------+
  196.  
  197.      If there are no differences found, you will see the message below.
  198.  
  199.          No errors found in comparing the 2 FAT's.
  200.  
  201.      If there are differences found, the output (which doesn't take long),
  202. will look something like this:
  203.  
  204.          FAT compare for drive C:
  205.          ------------------------------------------------------
  206.          > Error reading FAT's at hex offset: xxxxh <-- 0 based offset with-
  207.             Byte value in FAT #1, Sector xxxxx = xxh      in the sector(s).
  208.             Byte value in FAT #2, Sector xxxxx = xxh
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.                                                                  Page 40
  217. ----------------------------------------------------------------------------
  218. SECTEST <Alt-F7>
  219.  
  220.      Performs a test read of all sectors on the logged drive, to determine
  221. the integrity of their contents (data). You will see the prompt below.
  222. Choose the printer option by pressing "Y" or "N" on the keyboard, or a
  223. left mouse click over the "Y" or "N". To abort, press "ESC" on the keyboard,
  224. or a right mouse click. If "Y" is chosen, and the printer is not On Line,
  225. and you press ESC (to abort the print-out), the sector test will continue.
  226.  
  227.      [F1=Help] Do you wish to have the output sent to the printer (Y/N) ?
  228.  
  229. Pressing "F1" on the keyboard, or a left mouse click over "[F1=Help]", will
  230. pop-up the help screen below. Please note that older hard drives will be a
  231. bit slow. This is because of the hard drives ciruitry, not DE.
  232.  
  233.              +-|ESC|---------------------------------+
  234.              | This session performs a physical read |
  235.              | of all sectors on the disk.           |
  236.              | All read errors are reported to the   |
  237.              | screen and optionally the printer.    |
  238.              | Time frame of test:                   |
  239.              |   Floppy disk    =  1 minute  (+/-).  |
  240.              |   2 GB hard disk = 20 minutes (+/-).  |
  241.              | ESC = do not perform the Sector Test. |
  242.              +---------------------------------------+
  243.  
  244.      After selecting the printer option, the prompt below will appear.
  245. n/a  = we are not in the DATA sectors yet (where the cluster scheme begins).
  246. xxxx = the cluster number (in hexidecimal) that is currently being tested.
  247. The "Cluster: xxxx" display may seem to be skipping clusters, but it is not.
  248. Since most clusters (groups of sectors) on a disk will be good, this program
  249. takes advantage of DMA (Direct Memory Access) by reading large groups of
  250. sectors at once. If an error occurs during one of these reads, the program
  251. backs up, reads each set of clusters from that group in order to isolate
  252. the bad cluster (aka, sectors within that cluster), and then goes to the next
  253. large group of sectors. If the "Cluster: xxxx" is skipping along just fine,
  254. and then starts to crawl through the cluster numbers, you'll know that DE
  255. received a sector read error. If no read errors are reported to the screen,
  256. and the "Cluster: xxxx" display starts to skipping along again, then the
  257. magnetic field (called: flux) of the errant sector is probably getting weak.
  258. A trick I learned a few years ago, with bad floppy disks, was to put the
  259. disk in the drive bay, close the door, and leave it there for about 5 or 10
  260. minutes. The heat generated within the computer case seems to energize the
  261. magnetic field (flux) on the disk. Then is a good time to copy its contents
  262. to a fresh disk. If in doing so, DOS brings up its infamous "<A>bort,
  263. <R>etry, <I>gnore" message, choose <I>gnore. DOS will attempt to read a bad
  264. disk sector 3 times before you see this message. And since DOS will always
  265. assume a worse case scenerio, choosing anything but <I>gnore would be
  266. fruitless. NEVER use DISKCOPY to transfere files from a bad disk to a good
  267. disk. You will end up with a duplicate of the bad disk. Use COPY instead.
  268. To abort the sector test, before it is finished, press ESC.
  269.  
  270.                                                                  Page 41
  271. SECTEST <Alt-F7> (cont.)
  272.  
  273. Performing >> READ SECTOR TEST <<..please wait..[ESC to abort]  Cluster: n/a
  274.                                       or
  275. Performing >> READ SECTOR TEST <<..please wait..[ESC to abort]  Cluster: xxxx
  276.  
  277.      The below is a sample of what you would see. With some sector read
  278. errors thrown in. Please note that the sector numbers are displayed in
  279. decimal and the cluster numbers in hexidecimal. The number that appears
  280. after the sector number is the 1 or 2-digit error code that was returned
  281. by the operating system. On a color moniter this error code will be yellow
  282. and on a monochrome moniter, high intensity (real bright). If the print-out
  283. option is chosen, the error code will be enclosed in brackets: [ 4].
  284. NOTE: This session tests ALL sectors on the disk, whether the area they are
  285. in is marked as bad in the FAT (File Allocation Table) or not. If you have
  286. an older computer, it would be a good idea to run <Alt-F5> FndNFAT, with the
  287. print-out option, the first time around. This will give you a print-out of
  288. any clusters that are marked as bad in the FAT (this prevents DOS from using
  289. these clusters).
  290.  
  291.   Reading BOOT sector(s): OK
  292.   Reading FAT #1 sectors: OK
  293.   Reading FAT #2 sectors: Error reading SECTOR 1234567890  4
  294.   Reading ROOT DIRECTORY sectors : OK
  295.   Reading DATA clusters & sectors: Error reading CLUSTER---> FFFFh
  296.                                                  SECTOR 1234567890  4
  297.  
  298.      The message below will appear once the sector test is complete.
  299. To exit the sector test, press "ESC" on the keyboard. Or a left mouse click
  300. over "ESC". To view the Sector Error Code Definition screen, press "F1" on
  301. the keyboard. Or left mouse click over "F1".
  302.  
  303.          ...Press F1 for help, ESC to exit...
  304.  
  305.      Below is the Sector Error Code Definition screen. To exit this screen,
  306. press "ESC" on the keyboard. Or left mouse click over "ESC". To send its
  307. contents to the printer, press "P" on the keyboard. Or left mouse click
  308. over "P".
  309. NOTE: A sector error code of 4 does not necessarily mean that the sectors
  310. magnetic field (flux) is about to fail. But if the sector test reports a
  311. great number of these, its probably a good time to perform a complete backup,
  312. and then low-level format the drive. This will restore the magnetic field of
  313. the disk. Now if any other of the error codes are reported (6, 7, 8, 11, or
  314. 12), and the clusters that they are in are not marked as bad in the FAT, then
  315. it would be very wise to have a professional PC technician examine the
  316. circuitry of the drive. And if necessary, replace the drive.
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.                                                                  Page 42
  325. SECTEST <Alt-F7> (cont.)
  326.  
  327.          +-|ESC|------------------------------------------------| P |-+
  328.          | Error codes returned by the operating system if a sector   |
  329.          | read or write error occured.                               |
  330.          | ---------------------------------------------------------- |
  331.          |  0 = Disk is write-protected.                              |
  332.          |  1 = Invalid drive number.                                 |
  333.          |  2 = Drive not ready (drive door is open).                 |
  334.          |  4 = Bad CRC (data read is usually valid; not guaranteed). |
  335.          |  6 = Couldn't access track.                                |
  336.          |  7 = Unrecognizable disk format.                           |
  337.          |  8 = Sector not found (corrupted sector/media).            |
  338.          | 10 = Write error.                                          |
  339.          | 11 = Read error.                                           |
  340.          | 12 = General unknown error (corrupted sector/media).       |
  341.          +------------------------------------------------------------+
  342.  
  343.      NOTE: In order to limit the file size of DE, it uses memory allocation
  344. to perform this test. If in running this session with the least amount of
  345. memory required, there would still not be enough free memory, you would see
  346. see the message below. Press "ESC" on the keyboard, or a left mouse click
  347. over "ESC", to end the SecTest session.
  348.  
  349.              +-|ESC|---------------------------------+
  350.              | SORRY: There is not enough free memory|
  351.              | to run the Read Sector Test!          |
  352.              +---------------------------------------+
  353.  
  354. ----------------------------------------------------------------------------
  355. MISCELLANEOUS - Disk read or write error messages.
  356.  
  357.      You would see the below message if you attempted to save sector changes
  358. to a floppy disk with the write-protect tab enabled. To abort saving the
  359. sector changes, press "ESC" or "N" on the keyboard. Or a left mouse click
  360. over "ESC" or "N". To continue with the sector changes, disable the write-
  361. protect tab and press "Y" on the keyboard. Or left mouse click over "Y".
  362.  
  363.              +-|ESC|---------------------------------+
  364.              | Unable to write sector changes to the |
  365.              | disk! Write protect tab is enabled.   |
  366.              | Disable and press Y if you wish to    |
  367.              | save changes. Press N or ESC to abort.|
  368.              |                                       |
  369.              |           Continue <Y/N> ?            |
  370.              +---------------------------------------+
  371.  
  372.          You would see one of the combinations of these messages for a
  373. sector read or write error. Press "ESC" on the keyboard to continue. Or
  374. left mouse click over "ESC".
  375.  
  376.  
  377.  
  378.                                                                  Page 43
  379. MISCELLANEOUS - Disk read or write error messages. (cont.)
  380.  
  381.              +-|ESC|---------------------------------+
  382.              | Error reading sector:                 |
  383.  
  384.              +-|ESC|---------------------------------+
  385.              | Error reading disk boot sector:       |
  386.  
  387.              +-|ESC|---------------------------------+
  388.              | Error reading FAT sectors:            |
  389.  
  390.              +-|ESC|---------------------------------+
  391.              | Error reading directory sector:       |
  392.  
  393.              +-|ESC|---------------------------------+
  394.              | Error writing sector changes:         |
  395.  
  396.              +-|ESC|---------------------------------+
  397.              | Error writing FAT sectors:            |
  398.  
  399.              +-|ESC|---------------------------------+
  400.              | Error writing directory sector:       |
  401.  
  402.  
  403.              | Invalid drive number.                 |
  404.              +---------------------------------------+
  405.  
  406.              | Unknown error.                        |
  407.              +---------------------------------------+
  408.  
  409.              | Bad CRC (data read is usually valid). |
  410.              +---------------------------------------+
  411.  
  412.              | Couldn't access track.                |
  413.              +---------------------------------------+
  414.  
  415.              | Unrecognizable disk format.           |
  416.              +---------------------------------------+
  417.  
  418.              | Sector not found (corrupted media).   |
  419.              +---------------------------------------+
  420.  
  421.              | Write error.                          |
  422.              +---------------------------------------+
  423.  
  424.              | Read error.                           |
  425.              +---------------------------------------+
  426.  
  427.              | General error (corrupted sector/media)|
  428.              +---------------------------------------+
  429.  
  430.  
  431.  
  432.                                                                  Page 44
  433. ----------------------------------------------------------------------------
  434. MISCELLANEOUS - Printer messages.
  435.  
  436. Printer is not ON LINE!!  Press ESC to quit. Any other key to continue...
  437.  
  438. Please insert a new sheet.  Then: ESC to quit. Any other key to continue...
  439.  
  440. ----------------------------------------------------------------------------
  441. Other programs by the author.
  442.  
  443. DAT2BIN.EXE  Converts an ASCII text file into an ASCIIZ binary file that
  444.              may be used to hold messages for Pop-Up Help screens, etc.
  445.              NOTE: DAT2BIN.ZIP includes DAT2BIN.EXE, TESTD2B.EXE, and 
  446.              TESTD2B2.EXE with accompanying source code.
  447.  
  448. EDITENV.EXE  A general purpose utility that allows one to edit, delete, or
  449.              add Enviroment Variables. This utility also expands the maximum
  450.              length of an Enviroment Variable from 127 characters to 255
  451.              characters! Pressing F1 while in the Variable or Editing Window
  452.              will pop-up a help screen.
  453.  
  454. GMENU.EXE    A general purpose utility that is used to create custom "menu
  455.              and shell" programs for games, utility programs, or whatever.
  456.  
  457. LISTDEV.EXE  v2.0 displays the Device Driver Chain and the contents of each
  458.              Device Header. Redirection to a file or the printer is allowed.
  459.              Source code included.
  460.  
  461. LISTIVT.EXE  v2.0, short for List the Interrupt Vector Table, provides a
  462.              simple way to obtain the Segment:Offset addresses from the IVT
  463.              in the first 1024 bytes of computer memory. A brief explanation
  464.              of each Interrupt is also shown. For ease of use, the bottom most
  465.              line is highlighted, showing the allowable key presses. An option
  466.              for a print-out of the current screen or the entire IVT listing
  467.              is provided via the F2 function key. A complete print-out is 10
  468.              pages.
  469.  
  470. MEMSPY.EXE   A general purpose utility that is used to peek and poke around
  471.              in memory. Output can also be sent to: [1] a file (binary image)
  472.              or PRN > file or [2] to the printer, with options that accom-
  473.              modate the capabilities of the printer being used.
  474.  
  475. PMENU.EXE    Displays a menu of choices for printer configuration. Press the
  476.              appropriate key that is shown to the left of the wanted selection.
  477.              In all cases, an uppercase letter = "Set" and where applicable,
  478.              a lowercase letter = "Cancel".
  479.  
  480. PMENU_E.EXE  Is identical to PMENU.EXE except it adds an additional
  481.              EPSON-specific command that allows the printer to be set to
  482.              extended ASCII printing without physically changing a dip-switch.
  483.  
  484.  
  485.  
  486.                                                                  Page 45
  487. Other programs by the author. (cont.)
  488.  
  489. SEC2FILE.EXE A general purpose utility that is used to copy the contents of
  490.              of an absolute sector (or sectors) to an output file for viewing
  491.              or editing. It is compatiable for any 12 or 16-FAT, with DOS
  492.              versions 2.xx through 7.xx.
  493.  
  494. TESTATTR.EXE A general purpose utility that allows a programmer to see the
  495.              colors that different "character attributes" generate,
  496.              the easy way!
  497.  
  498. ----------------------------------------------------------------------------
  499. THE END      JOB 28:28   ROMANS 1:16-20
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.                                                                  Page 46